package com.ios.sys.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ios.common.pojo.IosSysUser;
import com.ios.sys.dao.TestDao;

@Transactional
@Service(value="sysService")
public class SysService implements ISysService{
	
	@Autowired
	public TestDao testDao;
	
	public IosSysUser test(){
		System.out.println("###");
		IosSysUser iu = testDao.getHibernateTemplate().get(IosSysUser.class, "admin");
		iu.setPassword("9yy99");
		testDao.getHibernateTemplate().saveOrUpdate(iu);
		System.out.println("aa"+iu.getUserName());
		System.out.println("aa"+iu.getPassword());
		return iu;
	}
}
